package com.aau.edu.java.ai.langchain4j.Assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * @Classname SeparateChatAssistant
 * @Date 2025/5/9 16:30
 * @Created by 鲍宪立
 */
@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemory = "chatMemory",
        chatMemoryProvider = "chatMemoryProvider"
)
public interface SeparateChatAssistant {

    /**
     * 分离聊天记录
     * @param memoryId  聊天id
     * @param userMessage  用户信息
     * @return
     */
    String chat(@MemoryId int memoryId, @UserMessage String userMessage);
}
